
COMMON_GET_CUR_DIR_NAME(TARGET_NAME)
#=======================================
file(GLOB_RECURSE SRCS *.cpp)
file(GLOB_RECURSE QRC ${CMAKE_CURRENT_SOURCE_DIR}/*.qrc)
#=======================================
include(qt_project)
configure_qt_project(MODULES Core Gui Xml UI UI_HEADERS ${UIS})

#=======================================
# Add a 'wsf' library target that will be built from the listed sources
add_executable(${TARGET_NAME} ${INCS} ${SRCS}
	${QRC} ${UI_HEADERS}
)

configure_qt_conf(${TARGET_NAME})
#=======================================
TARGET_LINK_LIBRARIES(${TARGET_NAME}
	Qt5::Core Qt5::Gui Qt5::Widgets 
	qt_shared_library_target
)

IF(WIN32)
	set_property(TARGET ${TARGET_NAME} PROPERTY 
		FOLDER "examples/Apps")

	COMMON_CREATE_VCPROJ_USERFILE(${TARGET_NAME})
ENDIF()

# 安装
install_qt_libs_all()
install_qt_plugins()
install(TARGETS ${TARGET_NAME} DESTINATION bin)

#=======================================